
<template>
    <rx-dialog  @cancel="cancel">
        <rx-layout>
            <div slot="center">
                <a-form-model ref="form"  :model="mdl" >
                  <a-row>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.appName','应用名称')" >
                        <span  v-html="mdl.appName"></span>
                      </a-form-model-item>
                    </a-col>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.module','模块')" >
                        <span  v-html="mdl.module"></span>
                      </a-form-model-item>
                    </a-col>
                  </a-row>

                  <a-row>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.subModule','子模块')" >
                        <span  v-html="mdl.subModule"></span>
                      </a-form-model-item>
                    </a-col>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.className','类名')" >
                        <span  v-html="mdl.className"></span>
                      </a-form-model-item>
                    </a-col>
                  </a-row>

                  <a-row>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.method','方法名')" >
                        <span  v-html="mdl.methodName"></span>
                      </a-form-model-item>
                    </a-col>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.action','动作')" >
                        <span  v-html="mdl.action"></span>
                      </a-form-model-item>
                    </a-col>
                  </a-row>
                  <a-row>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.pkValue','业务主键')" >
                        <span  v-html="mdl.pkValue"></span>
                      </a-form-model-item>
                    </a-col>
                    <a-col :span="12">
                      <a-form-model-item  label="IP" >
                        <span  v-html="mdl.ip"></span>
                      </a-form-model-item>
                    </a-col>
                  </a-row>

                  <a-row>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.operation','操作')" >
                        <span  v-html="mdl.operation"></span>
                      </a-form-model-item>
                    </a-col>
                    <a-col :span="12">
                      <a-form-model-item  :label="i18n('form.userName','用户名')" >
                        <span  v-html="mdl.userName"></span>
                      </a-form-model-item>
                    </a-col>
                  </a-row>

                  <a-form-model-item  :label="i18n('form.oprDetail','操作明细')" >
                      <a-textarea v-model="mdl.detail" :rows="6"></a-textarea>
                  </a-form-model-item>

                  <a-form-model-item  :label="i18n('form.duration','执行时长(毫秒)')" >
                      <span  v-html="mdl.duration"></span>
                  </a-form-model-item>


                </a-form-model>
            </div>
        </rx-layout>
    </rx-dialog>
</template>
<script>
    import SysLogApi from '@/api/system/core/sysLog'
    import {RxDialog,BaseFormModel} from "@lowcode/jpaas-common-lib";

    export default {
        name: 'SysLogEdit',
        mixins:[BaseFormModel],
        components: {
            RxDialog,
        },
        data(){
            return {
            }
        },
        methods: {
            i18n(name,text,key){
                return this.$ti18(name,text,"SysLog",key);
            },
            get(id){
                return SysLogApi.get(id);
            },
        }
    }
</script>
<style>
    .relick a{
        margin-right: 10px;
    }

</style>
